function infoShow() {
    $("#DFileY0012Table").bootstrapTable({
        method:"get",
        url:"/DFile/pageY0012DFile",
        striped:true,
        pageNumber:1,
        pageSize:5,
        // 是否分页
        pagination:true,
        sidePagination: "server",
        pageList:[5,10,20],
        queryParams:function (params) {
            return{
                pageNum:(params.offset/params.limit)+1,
                pageSize:params.limit
            }
        },
        columns:[
            {title:"物料编号",field:"productId",align:"center"},
            {title:"物料名称",field:"productName",align:"center"},
            {title:"用途类型",field:"type",align:"center",
                formatter:function (value,row,index) {
                    if(value=="Y001-1"){
                        return "商品"
                    }
                    if(value=="Y001-2"){
                        return "物料"
                    }
                }},
            {title:"物料描述",field:"productDescribe",align:"center"},
            {title:"单位",field:"amountUnit",align:"center"},
            {title:"计划成本单价",field:"costPrice",align:"center"},
            {title:"添加",field:"id",align:"center",
                formatter:function (value,row,index) {
                    var dfile=JSON.stringify(row)
                    let btn1="<a href='javascript:void(0)' onclick=rk('"+dfile+"')>添加</a>"
                    return btn1;
                }
            },
        ]
    })
}